package com.wfx.controller;


import com.wfx.entity.Result;
import com.wfx.entity.ViewCatTpl;
import com.wfx.entity.WxbGoodsCat;
import com.wfx.service.IWxbGoodsCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 商品类目 前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-22
 */
@RestController
@RequestMapping("/goods-cat")
@CrossOrigin
public class WxbGoodsCatController {
    @Autowired
    private IWxbGoodsCatService iWxbGoodsCatService;
    @PostMapping("/save")
    private Result addOrUpdate(@RequestBody WxbGoodsCat wxbGoodsCat){
        return iWxbGoodsCatService.addOrUpdate(wxbGoodsCat);
    }

}
